<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">


<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>在线购物商城</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css" th:href="@{/layui/css/layui.css}">
    <script src="/static/js/jquery-1.11.3.min.js" th:src="@{/js/jquery-1.11.3.min.js}"></script>
    <script src="/static/layui/layui.all.js" th:src="@{/layui/layui.all.js}"></script>
</head>

<body>
<div style="border-bottom: solid gray 1px;display: flex;margin: 10px;justify-content: space-between" >
    <div>欢迎你!<span th:text="${session.seller1.name}" style="color:deepskyblue;"></span></div>
    <div style="display: flex;padding:5px">
        <div id="userMessage"><img th:src="${session.seller1.icon}"  class="layui-nav-img"></div>
        <a href="" th:href="@{/}">退出登录</a>
    </div>
</div>

<div>
    <div style="display: flex">
        <div style="border: lightgray solid 1px;text-align: center;margin: 100px;margin-left: 200px;margin-top: 50px" onclick="window.location='/seller/goods/goodsAddPre'">
            <i class="layui-icon layui-icon-tree" style="font-size:150px;display: block"></i>
            <a href="/seller/goods/goodsAddPre">发布商品</a>
        </div>

        <div style="border: lightgray solid 1px;text-align: center;margin: 100px;margin-top: 50px" onclick="window.location='/seller/goods/goodsList'">
            <i class="layui-icon layui-icon-senior" style="font-size: 150px;display: block"></i>
            <a href= "/seller/goods/goodsList">商品管理</a>
        </div>

        <div style="border: lightgray solid 1px;text-align: center;margin: 100px; margin-top: 50px" onclick="window.location='/buyer/order/orderList3'">
            <i class="layui-icon layui-icon-form" style="font-size:150px;display: block"></i>
            <a href="/buyer/order/orderList3">销售统计</a>
        </div>
    </div>

    <div style="display: flex">

        <div style="border: lightgray solid 1px;text-align: center;margin: 100px;margin-left: 370px;margin-top: 0;" onclick="window.location='/user/seller/password'">
            <i class="layui-icon layui-icon-edit" style="font-size:150px;display: block"></i>
            <a href="/user/seller/password">密码修改</a>
        </div>

        <div style="border: lightgray solid 1px;text-align: center;margin: 100px; margin-top: 0" onclick="window.location='/buyer/order/orderList2'">
            <i class="layui-icon layui-icon-table" style="font-size:150px;display: block"></i>
            <a href="/buyer/order/orderList2">订单管理</a>
        </div>

    </div>

</div>
<div style="display: block">


</div>
<div>

</div>

<input type="hidden" th:value="${session.userId}" id="userSession">

<script type="text/javascript" th:inline="javascript">
    $(function(){
        $("#userMessage").click(function (){
            window.location='/user/seller/sellerDetail';
        })
    })

</script>
</body>
</html>